home *** CD-ROM | disk | FTP | other *** search
/ Experimental BBS Explossion 3 / Experimental BBS Explossion III.iso / c / wgt35.zip / FLICAT.DOC < prev    next >
Text File  |  1993-01-28  |  3KB  |  77 lines

  1.                    FLICAT
  2.             Freeware 1992 by Barry Egerter
  3.                Courtesy of WordUp Software Productions
  4.  
  5.                 Overview of Algorithm
  6.                 ---------------------
  7.  
  8.     This program is not intended to be the most efficient, or most complex
  9. form of a concatenation program for FLI files (copyright Autodesk I believe).
  10. It will assume that all files will be the same resolution and speed, and uses
  11. the values given in the first file to store. There will be a slight flicker
  12. (or flash) between sequences because the palettes are different.
  13.  
  14.     The basic idea for the program is as follows:
  15.  
  16. a)    Will create a file with the name given by the user
  17. b)    Will add up to 10 FLI files into that one file, splicing them together
  18. c)    Source is Turbo Pascal
  19. d)    The presence of any corrupt FLI files will terminate the program before
  20.     creation of the new file
  21.  
  22.  
  23. Step 1 - Parameters
  24. -------------------
  25.     The parameters will be passed at the command line for simplicity. A
  26. typical session would be FLICAT NEWFLI.FLI C:\FLIS\NEAT.FLI C:\FLIS\WOW.FLI
  27.  
  28. This would take the initial settings of the file NEAT.FLI and use the speed
  29. and resolution values as standard for the entire sequence. The program will
  30. start by analyzing the files to determine the portions to include and the
  31. total number of frames and new file size. An end product of this example would
  32. be a file called NEWFLI.FLI which consists of the other two combined.
  33.  
  34. Step 2 - Analysis
  35. -----------------
  36.     The program checks each specified file to make sure it is an FLI,
  37. stores the number of bytes to copy from within the file during concatenation,
  38. and increases the total number of frames in the end product. FLI files always
  39. contain one more frame than the header specifies, and this frame is used to
  40. bring the screen back to resemble the first frame in the file. For our
  41. purposes, I decided it would be simpler just to copy the first frame over again
  42. instead of calculating the difference between the first and last frames.
  43.  
  44. Step 3 - Creation
  45. -----------------
  46.     The program will notify you of the final file size, and then begin
  47. concatenating the files together. The reason we had to analyze each first was
  48. to calculate the number of bytes to copy minus the main FLI header and the
  49. extra frame. Now we copy those segments into the new file, and then create our
  50. extra frame by duplicating the first frame of file 1.
  51.  
  52.     The included source code is free to be distributed, modified, or
  53. used as is. I would appreciate the mention of my contributions to this idea
  54. in any future upgrades or releases. Please give credit where credit is due.
  55.  
  56. Contact me regarding this or other WSP programs on:
  57.  
  58. Internet:   egerter@obelix.gaul.csd.uwo.ca
  59.  
  60. or
  61.  
  62. SoftNet BBS                    Barry Egerter
  63. London, Ontario, CANADA                94 Andover Drive
  64. 1-(519)-457-0065                London, Ontario, CANADA
  65. E-mail to Barry Egerter                N6J 3X2
  66.  
  67.  
  68. Programming in 320*200*256 VGA (mode 13h) ? 
  69. Get the WGT programming library for C language. Supports FLI playing, sprites,
  70. tile-based games, wipes, fades, dissolves, color cycling, bitmap flipping/
  71. warping/resizing, professional Sprite Creator and Map Maker utilities.
  72. Available on FTP sites as wgt*.*
  73.  
  74. SIMTEL - in pd1:<msdos.turbo-c>
  75. NIC.FUNET.FI - in pub/msdos/games/programming
  76. WUARCHIVE.WUSTL.EDU - in pub/MSDOS_UPLOADS
  77.